package po;

import org.hibernate.validator.constraints.NotBlank;

/**
 * @Title: Notice.java
 * @Description: TODO
 * @author 18130444郑雅玲
 * @date 2020-12-01 03:33:32
 */

public class Notice {
	
	private Integer id;
	@NotBlank(message="公告标题不能为空")
	private String ntitle;
	@NotBlank(message="公告内容不能为空")
	private String ncontent;
	private String ntime;//类型是datetime

	@Override
	public String toString() {
		return "Notice [id=" + id + ", ntitle=" + ntitle + ", ncontent=" + ncontent + ", ntime=" + ntime + "]";
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getNtitle() {
		return ntitle;
	}
	public void setNtitle(String ntitle) {
		this.ntitle = ntitle;
	}
	public String getNcontent() {
		return ncontent;
	}
	public void setNcontent(String ncontent) {
		this.ncontent = ncontent;
	}
	public String getNtime() {
		return ntime;
	}
	public void setNtime(String ntime) {
		this.ntime = ntime;
	}
	
	
}
